package com.exercise.poly_.detail_;

public class PolyDetail02 {
    public static void main(String[] args) {
        //属性看编译类型
        AA aa = new BB();
        System.out.println(aa.count);//10->父类中的count
    }
}

class AA{
    int count = 10;
}
class BB extends AA{
    int count = 20;
}
